#include "game.h"
#include "treat.h"


int treat(func_type type, Game *game, int err_cod)
{
    switch(type) {
        case CREATE_GAME:
            if(err_cod) { 
                printf("erro na criacao do game\n"); 
                quit_game(game);
            }
            break;
        case EVENT_PROCESS:
            switch(*(int *)err_cod) {
                default: /* printf("normal\n") */;
            }
    }

    return err_cod;
}

